/*global _, nw:true, window */

"use strict";

window.nw = window.nw || {};
nw.plugins = nw.plugins || {};

nw.plugins.Template = function(dom) {
    this._dom = dom;
};

nw.plugins.Template.prototype = {
    render: function(selector, view, model) {
        //var element = dom.findBySelector(selector);

        var template = _.template(this._dom.getHtml(selector));
        this._dom.setHtml(view, template(model));
    }
};